<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:tr="http://myfaces.apache.org/trinidad"
      xmlns:c="http://java.sun.com/jstl/core"
      xmlns:fn="http://java.sun.com/jsp/jstl/functions"
      xmlns:mias="http://www.monsters.inc/mias">
<!-- 
     Everything outside the ui:composition tag will be ignored by Facelets!
-->
<ui:composition>
  <!-- 
       This is a work around for bug TRINIDAD-1417
   -->
  <c:if test="#{not empty partialTriggers}">
    <c:set var="partialTriggers" value="#{mias:getStringArray(partialTriggers)}" />
  </c:if>
  
  <tr:panelLabelAndMessage label="#{msg[id]}:" for="#{id}">
    <tr:image id="#{id}" source="#{bean[id]}" styleClass="photo" partialTriggers="#{partialTriggers}"/>
  </tr:panelLabelAndMessage>

</ui:composition>
</html>
